# FROM python:3.12-slim-bookworm
FROM crpi-7au1zv2nzyn9ublg.cn-hangzhou.personal.cr.aliyuncs.com/aliyun-solution/python:3.10-slim-bookworm
# COPY --from=ghcr.io/astral-sh/uv:0.7.8 /uv /uvx /bin/
COPY --from=crpi-7au1zv2nzyn9ublg.cn-hangzhou.personal.cr.aliyuncs.com/aliyun-solution/uv:0.7.8 /uv /uvx /bin/
ADD . /app
# Sync the project into a new environment, asserting the lockfile is up to date
WORKDIR /app
ENV UV_DEFAULT_INDEX=https://mirrors.aliyun.com/pypi/simple/
RUN uv sync 
CMD ["uv", "run", "python", "mcp_server.py"]
